package com.gongj.lifecycle;

import org.springframework.beans.factory.FactoryBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.context.EnvironmentAware;
import org.springframework.context.weaving.LoadTimeWeaverAware;
import org.springframework.core.env.Environment;
import org.springframework.instrument.classloading.LoadTimeWeaver;


public class UserService implements FactoryBean<UserServiceFactoryBean> {
	@Override
	public UserServiceFactoryBean getObject() throws Exception {
		return new UserServiceFactoryBean();
	}

	@Override
	public Class<?> getObjectType() {
		return UserServiceFactoryBean.class;
	}

/*
	private  String beanName;

	@Autowired
	ApplicationContext applicationContext;


	@Override
	@Autowired
	public void setEnvironment(Environment environment) {
		System.out.println("-------------- environment ");
	}

	@Override
	@Autowired
	public void setLoadTimeWeaver(LoadTimeWeaver loadTimeWeaver) {
		System.out.println("-------------- loadTimeWeaver ");
	}
*/


}
